package com.ourteam.system.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:32
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class SysModuleAccessLogDAOQueryBean extends BaseQueryBean {
    public SysModuleAccessLogDAOQueryBean() {
        super();
    }

    public SysModuleAccessLogDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public SysModuleAccessLogDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.Id, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.Id, "id");
        }
    }

    public void addModuleIdSelectProperty() {
        addModuleIdSelectProperty("moduleId");
    }

    public void addModuleIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.ModuleId, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.ModuleId, "moduleId");
        }
    }

    public void addUserIdSelectProperty() {
        addUserIdSelectProperty("userId");
    }

    public void addUserIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.UserId, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.UserId, "userId");
        }
    }

    public void addSessionIdSelectProperty() {
        addSessionIdSelectProperty("sessionId");
    }

    public void addSessionIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.SessionId, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.SessionId, "sessionId");
        }
    }

    public void addAccessTimeSelectProperty() {
        addAccessTimeSelectProperty("accessTime");
    }

    public void addAccessTimeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.AccessTime, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.AccessTime, "accessTime");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.Status, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.Status, "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.Remarks, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.Remarks, "remarks");
        }
    }

    public void addModuleNameSelectProperty() {
        addModuleNameSelectProperty("moduleName");
    }

    public void addModuleNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.ModuleName, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.ModuleName, "moduleName");
        }
    }

    public void addDomainIdSelectProperty() {
        addDomainIdSelectProperty("domainId");
    }

    public void addDomainIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.DomainId, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.DomainId, "domainId");
        }
    }

    public void addDomainNameSelectProperty() {
        addDomainNameSelectProperty("domainName");
    }

    public void addDomainNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.DomainName, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.DomainName, "domainName");
        }
    }

    public void addUserNameSelectProperty() {
        addUserNameSelectProperty("userName");
    }

    public void addUserNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.UserName, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.UserName, "userName");
        }
    }

    public void addLoginTimeSelectProperty() {
        addLoginTimeSelectProperty("loginTime");
    }

    public void addLoginTimeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysModuleAccessLogDAO.LoginTime, aAlias);
        } else {
            addSelectProperty(ISysModuleAccessLogDAO.LoginTime, "loginTime");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addModuleIdSelectProperty();

        addUserIdSelectProperty();

        addSessionIdSelectProperty();

        addAccessTimeSelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();

        addModuleNameSelectProperty();

        addDomainIdSelectProperty();

        addDomainNameSelectProperty();

        addUserNameSelectProperty();

        addLoginTimeSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<SysModuleAccessLogDAOQueryBean> {
        protected Criteria(SysModuleAccessLogDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(ISysModuleAccessLogDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.Id + " is not null AND " +
                ISysModuleAccessLogDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.Id + " is null OR " +
                ISysModuleAccessLogDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " is null OR " +
                ISysModuleAccessLogDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Id + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andModuleIdIsNull() {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " is null");

            return this;
        }

        public Criteria andModuleIdIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " is not null");

            return this;
        }

        public Criteria andModuleIdIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " is not null AND " +
                ISysModuleAccessLogDAO.ModuleId + " <> ''");

            return this;
        }

        public Criteria andModuleIdIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.ModuleId +
                " is null OR " + ISysModuleAccessLogDAO.ModuleId + " = '')");

            return this;
        }

        public Criteria andModuleIdEqualTo(long value) {
            return andModuleIdEqualTo(Long.valueOf(value));
        }

        public Criteria andModuleIdEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " = ", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andModuleIdNotEqualTo(long value) {
            return andModuleIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andModuleIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " <>", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdNotEqualToOrIsNull(long value) {
            return andModuleIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andModuleIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " is null OR " +
                ISysModuleAccessLogDAO.ModuleId + " <>", value, "moduleId");

            return this;
        }

        public Criteria andModuleIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleIdGreaterThan(long value) {
            return andModuleIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andModuleIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " >", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andModuleIdGreaterThanOrEqualTo(long value) {
            return andModuleIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andModuleIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " >=", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleIdLessThan(long value) {
            return andModuleIdLessThan(Long.valueOf(value));
        }

        public Criteria andModuleIdLessThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " <", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andModuleIdLessThanOrEqualTo(long value) {
            return andModuleIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andModuleIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " <=", value,
                "moduleId");

            return this;
        }

        public Criteria andModuleIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleIdIn(long[] values) {
            if (values.length == 1) {
                return andModuleIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " in", values,
                    "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdNotIn(long[] values) {
            if (values.length == 1) {
                return andModuleIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " not in",
                    values, "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andModuleIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " in", values,
                    "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andModuleIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " not in",
                    values, "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andModuleIdEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " in",
                    Arrays.asList(values), "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andModuleIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleId + " not in",
                    Arrays.asList(values), "moduleId");

                return this;
            }
        }

        public Criteria andModuleIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleIdBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " between", value1,
                value2, "moduleId");

            return this;
        }

        public Criteria andModuleIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " between", value1,
                value2, "moduleId");

            return this;
        }

        public Criteria andModuleIdNotBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " not between",
                value1, value2, "moduleId");

            return this;
        }

        public Criteria andModuleIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleId + " not between",
                value1, value2, "moduleId");

            return this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion(ISysModuleAccessLogDAO.UserId + " is null");

            return this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.UserId + " is not null");

            return this;
        }

        public Criteria andUserIdIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.UserId + " is not null AND " +
                ISysModuleAccessLogDAO.UserId + " <> ''");

            return this;
        }

        public Criteria andUserIdIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.UserId + " is null OR " +
                ISysModuleAccessLogDAO.UserId + " = '')");

            return this;
        }

        public Criteria andUserIdEqualTo(long value) {
            return andUserIdEqualTo(Long.valueOf(value));
        }

        public Criteria andUserIdEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " = ", value, "userId");

            return this;
        }

        public Criteria andUserIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdNotEqualTo(long value) {
            return andUserIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andUserIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " <>", value, "userId");

            return this;
        }

        public Criteria andUserIdNotEqualToOrIsNull(long value) {
            return andUserIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andUserIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " is null OR " +
                ISysModuleAccessLogDAO.UserId + " <>", value, "userId");

            return this;
        }

        public Criteria andUserIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdGreaterThan(long value) {
            return andUserIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andUserIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " >", value, "userId");

            return this;
        }

        public Criteria andUserIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(long value) {
            return andUserIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " >=", value, "userId");

            return this;
        }

        public Criteria andUserIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdLessThan(long value) {
            return andUserIdLessThan(Long.valueOf(value));
        }

        public Criteria andUserIdLessThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " <", value, "userId");

            return this;
        }

        public Criteria andUserIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdLessThanOrEqualTo(long value) {
            return andUserIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " <=", value, "userId");

            return this;
        }

        public Criteria andUserIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdIn(long[] values) {
            if (values.length == 1) {
                return andUserIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " in", values,
                    "userId");

                return this;
            }
        }

        public Criteria andUserIdNotIn(long[] values) {
            if (values.length == 1) {
                return andUserIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " not in", values,
                    "userId");

                return this;
            }
        }

        public Criteria andUserIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andUserIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " in", values,
                    "userId");

                return this;
            }
        }

        public Criteria andUserIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andUserIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " not in", values,
                    "userId");

                return this;
            }
        }

        public Criteria andUserIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andUserIdEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " in",
                    Arrays.asList(values), "userId");

                return this;
            }
        }

        public Criteria andUserIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andUserIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserId + " not in",
                    Arrays.asList(values), "userId");

                return this;
            }
        }

        public Criteria andUserIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserIdBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " between", value1,
                value2, "userId");

            return this;
        }

        public Criteria andUserIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " between", value1,
                value2, "userId");

            return this;
        }

        public Criteria andUserIdNotBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " not between",
                value1, value2, "userId");

            return this;
        }

        public Criteria andUserIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.UserId + " not between",
                value1, value2, "userId");

            return this;
        }

        public Criteria andSessionIdIsNull() {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " is null");

            return this;
        }

        public Criteria andSessionIdIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " is not null");

            return this;
        }

        public Criteria andSessionIdIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.SessionId +
                " is not null AND " + ISysModuleAccessLogDAO.SessionId +
                " <> ''");

            return this;
        }

        public Criteria andSessionIdIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.SessionId +
                " is null OR " + ISysModuleAccessLogDAO.SessionId + " = '')");

            return this;
        }

        public Criteria andSessionIdEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " = ", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " <>", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " is null OR " +
                ISysModuleAccessLogDAO.SessionId + " <>", value, "sessionId");

            return this;
        }

        public Criteria andSessionIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " >", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " >=", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " <", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " <=", value,
                "sessionId");

            return this;
        }

        public Criteria andSessionIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.SessionId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSessionIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.SessionId + " like",
                buffer.toString(), "sessionId");

            return this;
        }

        public Criteria andSessionIdNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.SessionId + " not like",
                buffer.toString(), "sessionId");

            return this;
        }

        public Criteria andSessionIdIn(List<String> values) {
            if (values.size() == 1) {
                return andSessionIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.SessionId + " in", values,
                    "sessionId");

                return this;
            }
        }

        public Criteria andSessionIdNotIn(List<String> values) {
            if (values.size() == 1) {
                return andSessionIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.SessionId + " not in",
                    values, "sessionId");

                return this;
            }
        }

        public Criteria andSessionIdIn(String[] values) {
            if (values.length == 1) {
                return andSessionIdEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.SessionId + " in",
                    Arrays.asList(values), "sessionId");

                return this;
            }
        }

        public Criteria andSessionIdNotIn(String[] values) {
            if (values.length == 1) {
                return andSessionIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.SessionId + " not in",
                    Arrays.asList(values), "sessionId");

                return this;
            }
        }

        public Criteria andSessionIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andSessionIdBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " between", value1,
                value2, "sessionId");

            return this;
        }

        public Criteria andSessionIdNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.SessionId + " not between",
                value1, value2, "sessionId");

            return this;
        }

        public Criteria andAccessTimeIsNull() {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " is null");

            return this;
        }

        public Criteria andAccessTimeIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " is not null");

            return this;
        }

        public Criteria andAccessTimeIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.AccessTime +
                " is not null AND " + ISysModuleAccessLogDAO.AccessTime +
                " <> ''");

            return this;
        }

        public Criteria andAccessTimeIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.AccessTime +
                " is null OR " + ISysModuleAccessLogDAO.AccessTime + " = '')");

            return this;
        }

        public Criteria andAccessTimeEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " = ",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeNotEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " <>",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeNotEqualToOrIsNull(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                " is null OR " + ISysModuleAccessLogDAO.AccessTime + " <>",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeGreaterThan(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " >",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeGreaterThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " >=",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeLessThan(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " <",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeLessThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime + " <=",
                value, "accessTime");

            return this;
        }

        public Criteria andAccessTimeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.AccessTime);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andAccessTimeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andAccessTimeEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                    " in", values, "accessTime");

                return this;
            }
        }

        public Criteria andAccessTimeNotIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andAccessTimeNotEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                    " not in", values, "accessTime");

                return this;
            }
        }

        public Criteria andAccessTimeIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andAccessTimeEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                    " in", Arrays.asList(values), "accessTime");

                return this;
            }
        }

        public Criteria andAccessTimeNotIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andAccessTimeNotEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                    " not in", Arrays.asList(values), "accessTime");

                return this;
            }
        }

        public Criteria andAccessTimeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.AccessTime + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andAccessTimeBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                " between", value1, value2, "accessTime");

            return this;
        }

        public Criteria andAccessTimeNotBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.AccessTime +
                " not between", value1, value2, "accessTime");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(ISysModuleAccessLogDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.Status + " is not null AND " +
                ISysModuleAccessLogDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.Status + " is null OR " +
                ISysModuleAccessLogDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " is null OR " +
                ISysModuleAccessLogDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Status + " not in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Status + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.Status + " not between",
                value1, value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " is not null AND " +
                ISysModuleAccessLogDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.Remarks + " is null OR " +
                ISysModuleAccessLogDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " = ", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " <>", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " is null OR " +
                ISysModuleAccessLogDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " >", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " >=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " <", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " <=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.Remarks + " not in",
                    values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.Remarks + " not between",
                value1, value2, "remarks");

            return this;
        }

        public Criteria andModuleNameIsNull() {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " is null");

            return this;
        }

        public Criteria andModuleNameIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " is not null");

            return this;
        }

        public Criteria andModuleNameIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.ModuleName +
                " is not null AND " + ISysModuleAccessLogDAO.ModuleName +
                " <> ''");

            return this;
        }

        public Criteria andModuleNameIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.ModuleName +
                " is null OR " + ISysModuleAccessLogDAO.ModuleName + " = '')");

            return this;
        }

        public Criteria andModuleNameEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " = ", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " <>", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " is null OR " +
                ISysModuleAccessLogDAO.ModuleName + " <>", value, "moduleName");

            return this;
        }

        public Criteria andModuleNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " >", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " >=", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " <", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " <=", value,
                "moduleName");

            return this;
        }

        public Criteria andModuleNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.ModuleName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModuleNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " like",
                buffer.toString(), "moduleName");

            return this;
        }

        public Criteria andModuleNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " not like",
                buffer.toString(), "moduleName");

            return this;
        }

        public Criteria andModuleNameIn(List<String> values) {
            if (values.size() == 1) {
                return andModuleNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleName + " in", values,
                    "moduleName");

                return this;
            }
        }

        public Criteria andModuleNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andModuleNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleName + " not in",
                    values, "moduleName");

                return this;
            }
        }

        public Criteria andModuleNameIn(String[] values) {
            if (values.length == 1) {
                return andModuleNameEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleName + " in",
                    Arrays.asList(values), "moduleName");

                return this;
            }
        }

        public Criteria andModuleNameNotIn(String[] values) {
            if (values.length == 1) {
                return andModuleNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.ModuleName + " not in",
                    Arrays.asList(values), "moduleName");

                return this;
            }
        }

        public Criteria andModuleNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModuleNameBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " between",
                value1, value2, "moduleName");

            return this;
        }

        public Criteria andModuleNameNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.ModuleName + " not between",
                value1, value2, "moduleName");

            return this;
        }

        public Criteria andDomainIdIsNull() {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " is null");

            return this;
        }

        public Criteria andDomainIdIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " is not null");

            return this;
        }

        public Criteria andDomainIdIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " is not null AND " +
                ISysModuleAccessLogDAO.DomainId + " <> ''");

            return this;
        }

        public Criteria andDomainIdIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.DomainId +
                " is null OR " + ISysModuleAccessLogDAO.DomainId + " = '')");

            return this;
        }

        public Criteria andDomainIdEqualTo(long value) {
            return andDomainIdEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " = ", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdNotEqualTo(long value) {
            return andDomainIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " <>", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToOrIsNull(long value) {
            return andDomainIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " is null OR " +
                ISysModuleAccessLogDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThan(long value) {
            return andDomainIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " >", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(long value) {
            return andDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " >=", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThan(long value) {
            return andDomainIdLessThan(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThan(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " <", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(long value) {
            return andDomainIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " <=", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " not in",
                    values, "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " not in",
                    values, "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainId + " not in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(long value1, long value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " not between",
                value1, value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainId + " not between",
                value1, value2, "domainId");

            return this;
        }

        public Criteria andDomainNameIsNull() {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " is null");

            return this;
        }

        public Criteria andDomainNameIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " is not null");

            return this;
        }

        public Criteria andDomainNameIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.DomainName +
                " is not null AND " + ISysModuleAccessLogDAO.DomainName +
                " <> ''");

            return this;
        }

        public Criteria andDomainNameIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.DomainName +
                " is null OR " + ISysModuleAccessLogDAO.DomainName + " = '')");

            return this;
        }

        public Criteria andDomainNameEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " = ", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " <>", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " is null OR " +
                ISysModuleAccessLogDAO.DomainName + " <>", value, "domainName");

            return this;
        }

        public Criteria andDomainNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " >", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " >=", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " <", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " <=", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.DomainName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.DomainName + " like",
                buffer.toString(), "domainName");

            return this;
        }

        public Criteria andDomainNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.DomainName + " not like",
                buffer.toString(), "domainName");

            return this;
        }

        public Criteria andDomainNameIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainName + " in", values,
                    "domainName");

                return this;
            }
        }

        public Criteria andDomainNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainName + " not in",
                    values, "domainName");

                return this;
            }
        }

        public Criteria andDomainNameIn(String[] values) {
            if (values.length == 1) {
                return andDomainNameEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainName + " in",
                    Arrays.asList(values), "domainName");

                return this;
            }
        }

        public Criteria andDomainNameNotIn(String[] values) {
            if (values.length == 1) {
                return andDomainNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.DomainName + " not in",
                    Arrays.asList(values), "domainName");

                return this;
            }
        }

        public Criteria andDomainNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " between",
                value1, value2, "domainName");

            return this;
        }

        public Criteria andDomainNameNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.DomainName + " not between",
                value1, value2, "domainName");

            return this;
        }

        public Criteria andUserNameIsNull() {
            addCriterion(ISysModuleAccessLogDAO.UserName + " is null");

            return this;
        }

        public Criteria andUserNameIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.UserName + " is not null");

            return this;
        }

        public Criteria andUserNameIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.UserName + " is not null AND " +
                ISysModuleAccessLogDAO.UserName + " <> ''");

            return this;
        }

        public Criteria andUserNameIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.UserName +
                " is null OR " + ISysModuleAccessLogDAO.UserName + " = '')");

            return this;
        }

        public Criteria andUserNameEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " = ", value,
                "userName");

            return this;
        }

        public Criteria andUserNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserNameNotEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " <>", value,
                "userName");

            return this;
        }

        public Criteria andUserNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " is null OR " +
                ISysModuleAccessLogDAO.UserName + " <>", value, "userName");

            return this;
        }

        public Criteria andUserNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserNameGreaterThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " >", value,
                "userName");

            return this;
        }

        public Criteria andUserNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " >=", value,
                "userName");

            return this;
        }

        public Criteria andUserNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserNameLessThan(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " <", value,
                "userName");

            return this;
        }

        public Criteria andUserNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andUserNameLessThanOrEqualTo(String value) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " <=", value,
                "userName");

            return this;
        }

        public Criteria andUserNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.UserName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andUserNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.UserName + " like",
                buffer.toString(), "userName");

            return this;
        }

        public Criteria andUserNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysModuleAccessLogDAO.UserName + " not like",
                buffer.toString(), "userName");

            return this;
        }

        public Criteria andUserNameIn(List<String> values) {
            if (values.size() == 1) {
                return andUserNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserName + " in", values,
                    "userName");

                return this;
            }
        }

        public Criteria andUserNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andUserNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserName + " not in",
                    values, "userName");

                return this;
            }
        }

        public Criteria andUserNameIn(String[] values) {
            if (values.length == 1) {
                return andUserNameEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserName + " in",
                    Arrays.asList(values), "userName");

                return this;
            }
        }

        public Criteria andUserNameNotIn(String[] values) {
            if (values.length == 1) {
                return andUserNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysModuleAccessLogDAO.UserName + " not in",
                    Arrays.asList(values), "userName");

                return this;
            }
        }

        public Criteria andUserNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andUserNameBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " between", value1,
                value2, "userName");

            return this;
        }

        public Criteria andUserNameNotBetween(String value1, String value2) {
            addCriterion(ISysModuleAccessLogDAO.UserName + " not between",
                value1, value2, "userName");

            return this;
        }

        public Criteria andLoginTimeIsNull() {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " is null");

            return this;
        }

        public Criteria andLoginTimeIsNotNull() {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " is not null");

            return this;
        }

        public Criteria andLoginTimeIsNotEmpty() {
            addCriterion(ISysModuleAccessLogDAO.LoginTime +
                " is not null AND " + ISysModuleAccessLogDAO.LoginTime +
                " <> ''");

            return this;
        }

        public Criteria andLoginTimeIsEmpty() {
            addCriterion("(" + ISysModuleAccessLogDAO.LoginTime +
                " is null OR " + ISysModuleAccessLogDAO.LoginTime + " = '')");

            return this;
        }

        public Criteria andLoginTimeEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " = ",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeNotEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " <>",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeNotEqualToOrIsNull(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                " is null OR " + ISysModuleAccessLogDAO.LoginTime + " <>",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeGreaterThan(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " >",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " >=",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeLessThan(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " <",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeLessThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime + " <=",
                value, "loginTime");

            return this;
        }

        public Criteria andLoginTimeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysModuleAccessLogDAO.LoginTime);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLoginTimeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andLoginTimeEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                    " in", values, "loginTime");

                return this;
            }
        }

        public Criteria andLoginTimeNotIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andLoginTimeNotEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                    " not in", values, "loginTime");

                return this;
            }
        }

        public Criteria andLoginTimeIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andLoginTimeEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                    " in", Arrays.asList(values), "loginTime");

                return this;
            }
        }

        public Criteria andLoginTimeNotIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andLoginTimeNotEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                    " not in", Arrays.asList(values), "loginTime");

                return this;
            }
        }

        public Criteria andLoginTimeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysModuleAccessLogDAO.LoginTime + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLoginTimeBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                " between", value1, value2, "loginTime");

            return this;
        }

        public Criteria andLoginTimeNotBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(ISysModuleAccessLogDAO.LoginTime +
                " not between", value1, value2, "loginTime");

            return this;
        }
    }
}
